home *** CD-ROM | disk | FTP | other *** search
/ Amiga Developer CD 2.1 / Amiga Developer CD v2.1.iso / NDK / NDK_1.3 / Include-Strip1.3 / include.h / devices / printer.h < prev    next >
Encoding:
C/C++ Source or Header  |  1988-07-15  |  3.2 KB  |  156 lines

  1. #ifndef    DEVICES_PRINTER_H
  2. #define    DEVICES_PRINTER_H
  3. #ifndef    EXEC_NODES_H
  4. #include    "exec/nodes.h"
  5. #endif
  6. #ifndef    EXEC_LISTS_H
  7. #include    "exec/lists.h"
  8. #endif
  9. #ifndef    EXEC_PORTS_H
  10. #include    "exec/ports.h"
  11. #endif
  12. #define    PRD_RAWWRITE    (CMD_NONSTD+0)
  13. #define    PRD_PRTCOMMAND    (CMD_NONSTD+1)
  14. #define    PRD_DUMPRPORT    (CMD_NONSTD+2)
  15. #define    PRD_QUERY    (CMD_NONSTD+3)
  16. #define    aRIS    0
  17. #define    aRIN    1
  18. #define    aIND    2
  19. #define    aNEL    3
  20. #define    aRI    4
  21. #define    aSGR0    5
  22. #define    aSGR3    6
  23. #define    aSGR23    7
  24. #define    aSGR4    8
  25. #define    aSGR24    9
  26. #define    aSGR1    10
  27. #define    aSGR22    11
  28. #define    aSFC    12
  29. #define    aSBC    13
  30. #define    aSHORP0    14
  31. #define    aSHORP2    15
  32. #define    aSHORP1    16
  33. #define    aSHORP4    17
  34. #define    aSHORP3    18
  35. #define    aSHORP6    19
  36. #define    aSHORP5    20
  37. #define    aDEN6    21
  38. #define    aDEN5    22
  39. #define    aDEN4    23
  40. #define    aDEN3    24
  41. #define    aDEN2    25
  42. #define    aDEN1    26
  43. #define    aSUS2    27
  44. #define    aSUS1    28
  45. #define    aSUS4    29
  46. #define    aSUS3    30
  47. #define    aSUS0    31
  48. #define    aPLU    32
  49. #define    aPLD    33
  50. #define    aFNT0    34
  51. #define    aFNT1    35
  52. #define    aFNT2    36
  53. #define    aFNT3    37
  54. #define    aFNT4    38
  55. #define    aFNT5    39
  56. #define    aFNT6    40
  57. #define    aFNT7    41
  58. #define    aFNT8    42
  59. #define    aFNT9    43
  60. #define    aFNT10    44
  61. #define    aPROP2    45
  62. #define    aPROP1    46
  63. #define    aPROP0    47
  64. #define    aTSS    48
  65. #define    aJFY5    49
  66. #define    aJFY7    50
  67. #define    aJFY6    51
  68. #define    aJFY0    52
  69. #define    aJFY3    53
  70. #define    aJFY1    54
  71. #define    aVERP0    55
  72. #define    aVERP1    56
  73. #define    aSLPP    57
  74. #define    aPERF    58
  75. #define    aPERF0    59
  76. #define    aLMS    60
  77. #define    aRMS    61
  78. #define    aTMS    62
  79. #define    aBMS    63
  80. #define    aSTBM    64
  81. #define    aSLRM    65
  82. #define    aCAM    66
  83. #define    aHTS    67
  84. #define    aVTS    68
  85. #define    aTBC0    69
  86. #define    aTBC3    70
  87. #define    aTBC1    71
  88. #define    aTBC4    72
  89. #define    aTBCALL    73
  90. #define    aTBSALL    74
  91. #define    aEXTEND    75
  92. #define    aRAW    76
  93. struct    IOPrtCmdReq    {
  94. struct    Message    io_Message;
  95. struct    Device    *io_Device;
  96. struct    Unit    *io_Unit;
  97. UWORD    io_Command;
  98. UBYTE    io_Flags;
  99. BYTE    io_Error;
  100. UWORD    io_PrtCommand;
  101. UBYTE    io_Parm0;
  102. UBYTE    io_Parm1;
  103. UBYTE    io_Parm2;
  104. UBYTE    io_Parm3;
  105. };
  106. struct    IODRPReq    {
  107. struct    Message    io_Message;
  108. struct    Device    *io_Device;
  109. struct    Unit    *io_Unit;
  110. UWORD    io_Command;
  111. UBYTE    io_Flags;
  112. BYTE    io_Error;
  113. struct    RastPort    *io_RastPort;
  114. struct    ColorMap    *io_ColorMap;
  115. ULONG    io_Modes;
  116. UWORD    io_SrcX;
  117. UWORD    io_SrcY;
  118. UWORD    io_SrcWidth;
  119. UWORD    io_SrcHeight;
  120. LONG    io_DestCols;
  121. LONG    io_DestRows;
  122. UWORD    io_Special;
  123. };
  124. #define    SPECIAL_MILCOLS    0x0001
  125. #define    SPECIAL_MILROWS    0x0002
  126. #define    SPECIAL_FULLCOLS    0x0004
  127. #define    SPECIAL_FULLROWS    0x0008
  128. #define    SPECIAL_FRACCOLS    0x0010
  129. #define    SPECIAL_FRACROWS    0x0020
  130. #define    SPECIAL_CENTER    0x0040
  131. #define    SPECIAL_ASPECT    0x0080
  132. #define    SPECIAL_DENSITY1    0x0100
  133. #define    SPECIAL_DENSITY2    0x0200
  134. #define    SPECIAL_DENSITY3    0x0300
  135. #define    SPECIAL_DENSITY4    0x0400
  136. #define    SPECIAL_DENSITY5    0x0500
  137. #define    SPECIAL_DENSITY6    0x0600
  138. #define    SPECIAL_DENSITY7    0x0700
  139. #define    SPECIAL_NOFORMFEED    0x0800
  140. #define    SPECIAL_TRUSTME    0x1000
  141. #define    SPECIAL_NOPRINT    0x2000
  142. #define    PDERR_NOERR    0
  143. #define    PDERR_CANCEL    1
  144. #define    PDERR_NOTGRAPHICS    2
  145. #define    PDERR_INVERTHAM    3
  146. #define    PDERR_BADDIMENSION    4
  147. #define    PDERR_DIMENSIONOVFLOW    5
  148. #define    PDERR_INTERNALMEMORY    6
  149. #define    PDERR_BUFFERMEMORY    7
  150. #define    PDERR_TOOKCONTROL    8
  151. #define    SPECIAL_DENSITYMASK    0x0700
  152. #define    SPECIAL_DIMENSIONSMASK    \
  153. (SPECIAL_MILCOLS|SPECIAL_MILROWS|SPECIAL_FULLCOLS|SPECIAL_FULLROWS\
  154. |SPECIAL_FRACCOLS|SPECIAL_FRACROWS|SPECIAL_ASPECT)
  155. #endif
  156.